export class StdAbbreviation {
  constructor(node) {
    this.node = node
  }
  get data() {
    const trNodes = [...this.node.querySelectorAll('tbody tr')]
    return trNodes.map((node) => {
      const tdNodes = [...node.querySelectorAll('td')]
      return {
        dataId: node.dataset.id,
        nameShort: tdNodes[0].innerText,
        nameEn: tdNodes[1].innerText,
        description: tdNodes[2].innerText
      }
    })
  }
}
